﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Thanhvien.ascx.cs" Inherits="Thv.admin.Pages.Thanhvien" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<br />
<table width="100%">
    <tr>
        <td style="width: 10%">
        </td>
        <td style="width: 80%">
            <dx:ASPxGridView ID="grvTV" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" Width="100%"
                OnAfterPerformCallback="grvTV_AfterPerformCallback">
                <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                <Columns>
                    <dx:GridViewBandColumn Caption="">
                        <HeaderStyle Font-Bold="True" HorizontalAlign="Center" Font-Size="15px" />
                        <HeaderCaptionTemplate>
                            SỐ LƯỢNG THÀNH VIÊN VÀ CỘNG TÁC VIÊN CỦA HỆ THỐNG</HeaderCaptionTemplate>
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="User Name" VisibleIndex="1" FieldName="UserName">
                                <DataItemTemplate>
                                    <asp:LinkButton ID="linkXem" runat="server" Text='<%#Eval("UserName") %>' OnClick="linkXem_Click"></asp:LinkButton>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Họ và tên" VisibleIndex="2" FieldName="Fullname">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Người giới thiệu" VisibleIndex="3" FieldName="nguoigioithieu">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Email" VisibleIndex="4" FieldName="email">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn Caption="Ngày gia nhập" FieldName="ngaythamgia" 
                                UnboundType="DateTime" VisibleIndex="5">
                                <PropertiesDateEdit DisplayFormatString="" Spacing="0">
                                </PropertiesDateEdit>
                            </dx:GridViewDataDateColumn>
                            <dx:GridViewDataTextColumn Caption="Cấp bậc" VisibleIndex="6" FieldName="capbac">
                            </dx:GridViewDataTextColumn>
                           
                        </Columns>
                    </dx:GridViewBandColumn>
                </Columns>
                <SettingsPager NumericButtonCount="100" PageSize="100">
                </SettingsPager>
                <Settings ShowFilterRow="True" ShowFilterRowMenu="True" />
                <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                    <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
                    </LoadingPanelOnStatusBar>
                    <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                    </LoadingPanel>
                </Images>
                <ImagesFilterControl>
                    <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                    </LoadingPanel>
                </ImagesFilterControl>
                <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                    </Header>
                    <LoadingPanel ImageSpacing="5px">
                    </LoadingPanel>
                </Styles>
                <StylesEditors ButtonEditCellSpacing="0">
                    <ProgressBar Height="21px">
                    </ProgressBar>
                </StylesEditors>
            </dx:ASPxGridView>
        </td>
        <td style="width: 10%">
        </td>
    </tr>
</table>
